/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modelo.dao;

/**
 *
 * @author np2tec-07
 */
public class DAOFactory 
{
    private static DAOFactory _instance = null;
    
    private DAOFactory(){}
    
    public static synchronized DAOFactory getInstance(){
        if(_instance == null){
            _instance = new DAOFactory();
        }
        return _instance;
    }
    
    public IQuestaoMultiplaEscolhaDAO getQuestaoMultiplaEscolhaDAO()
    {
       return new PostgresQuestaoMultiplaEscolhaDAO(); 
    }   
    
    public IQuestaoDiscursivaDAO getQuestaoDiscursivaDAO()
    {
       return new PostgresQuestaoDiscursivaDAO(); 
    } 
    
    public IDisciplinaDAO getDisciplinaDAO()
    {
        return new PostgresDisciplinaDAO();
    }
}
